import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import MainFrame from "@/views/MainFrame.vue";
import App from "@/App.vue";
import request from "@/utils/server.js";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from "./router";
//全局注册 axios
import * as Vue from 'vue';

const app = createApp(MainFrame)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.config.globalProperties.$request = request

app.use(Vue.prototype)
app.use(router)
app.use(ElementPlus, { size: 'small', zIndex: 3000 })
app.mount('#app')